package cn.edu.ctbu.labtest.dao;

import cn.edu.ctbu.labtest.domain.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 学生仓库接口
 */
public interface StudentRepository extends JpaRepository<Student,Integer> {

    public List<Student> findByName(String name);

    public Page<Student> findAll(Pageable pageable);

    public Page<Student> findBySex(Integer sex,Pageable pageable);

}
